<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>送货上门信息</title>
	</head>
	
    <body>
	   <div class="col-md-12">
	      <!-- BEGIN EXAMPLE TABLE PORTLET-->
	      <div class="portlet">
	         <div class="portlet-title">
	            <div class="caption"><i class="icon-edit"></i>通知列表</div>
	         </div>
	         <div class="portlet-body">
	            <s:form id="queryFrm" action="list" namespace="/admin/express" method="post" cssClass="form-horizontal">
					<div class="input-group" style="float: left">
						<label class="col-md-3 control-label width_100">取件码：</label>
						<s:textfield name="param.number" cssClass="form-control" 
							cssStyle="width:170px; vertical-align:initial" />
					</div>
					
					<div class="input-group" style="float: left">
						<label class="col-md-3 control-label width_100">起始时间：</label>
						<s:textfield name="param.startDate" cssClass="form-control Wdate" 
							onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
							cssStyle="width:170px; vertical-align:initial" />
					</div>
					
					<div class="input-group" style="float: left">
						<label class="col-md-3 control-label width_100">结束时间：</label>
						<s:textfield name="param.endDate" cssClass="form-control Wdate" 
							onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
							cssStyle="width:170px; vertical-align:initial" />
					</div>
					
					
					<div class="input-group" style="float: left">
						<s:hidden id="_page" name="page" />
						<label class="col-md-3 control-label width_100"></label>
		               	<button type="submit" class="btn btn-info">查询</button>
		               	&nbsp;&nbsp;
		               	<button type="button" id="reset" class="btn btn-default" onclick="frmReset()" >重置</button>
				   	</div>
	               <s:hidden id="_page" name="page" />
	            </s:form>
	            <div class="clear" ></div>
	            <s:if test="%{expresses.size >0}">
	            <table class="table table-striped table-hover table-bordered" id="floorTable">
	               <thead>
	                  <tr>
	                     <th>取件码</th>
	                     <th>电话</th>
	                     <th>时间</th>
                         <th>地址</th>
                         <th>快递公司</th>
                         <th>快递属性</th>
                         <th>备注</th>
                         <th>下单时间</th>
	                  </tr>
	               </thead>
	               <tbody>
	               <s:iterator value="expresses" >
	                  <tr >
                         <td><s:property value="number" /></td>
                         <td><s:property value="phone" /></td>
                         <td><s:property value="time" /></td>
                         <td><s:property value="address" /></td>
                         <td><s:property value="company" /></td>
                         <td><s:property value="property" /></td>
                         <td><s:property value="note" /></td>
                         <td><s:date name="createDate" format="yyyy-MM-dd HH:mm:ss" /></td>
	                  </tr>
	                  </s:iterator>
	               </tbody>
	            </table>
	            
	            <s:include value="/WEB-INF/jsp/admin/paging-bar.jsp" />
	            </s:if><s:else>
	            <s:include value="/WEB-INF/jsp/admin/empty-record.jsp" >
	            	<s:param name="moduleTitle">送货上门信息</s:param>
	            </s:include>
	            </s:else>
	         </div>
	      </div>
	      <!-- END EXAMPLE TABLE PORTLET-->
	   </div>
	   <script type="text/javascript">
            
       function frmReset() {
    	   var inputs = $("#queryFrm input[type='text']");
    	   inputs.each(function(index, input){
    		   $(input).val("");
    	   })
       }
       </script>
</body>
</html>